﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="BrsdServer.main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Home Page</title>
    <link href="style/main.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="js/jquery_ui_css/jquery-ui-1.8.16.custom.css" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
    <script src="js/main.js" type="text/javascript"></script>
</head>
<body>
    <div id="modifyDlg" title="Modify DNS Information">
        <ul>
        	<li style="margin-left:40px;">Current Domain：<span id="oldDns"></span></li>
        	<li style="margin-left:15px;">DVR Location：<span id="oldDvrAddr">1111111</span></li>
        	<li style="margin-left:40px;">Modify Domain：<input type="text" id="newDns" maxlength="10" /></li>
        	<li>Modify DVR Location：<input type="text" id="dvrAddr" maxlength="10" /></li>
        </ul>
    </div>
    <form id="form1" runat="server">
    
    <h2 class="main_title">DVR Domain System</h2>
<p class="main_email"><em>Login Time：<span id="loginTime" style="color:red; font-weight:bold;font-size:16px;"></span></em>
	<!--共 <span id="dvrCount" style="color:red; font-weight:bold;font-size:16px;"></span>&nbsp;&nbsp;&nbsp;台DVR连入系统--></p>
<asp:GridView runat="Server" AutoGenerateColumns="False" Height="60px" Width="98%" 
            ID="gvDnsInfo" AllowPaging="True"     DataKeyNames="dns_mac"    
            onpageindexchanging="gvDnsInfo_PageIndexChanging" 
            onrowdatabound="gvDnsInfo_RowDataBound" PageSize="14" 
             onrowdeleting="gvDnsInfo_RowDeleting">
    <Columns>
        <asp:TemplateField HeaderText="Serial Number">
        </asp:TemplateField>
        <asp:BoundField HeaderText="Domain" DataField=""/>
        <asp:BoundField HeaderText="IP Address" DataField="dns_ip"/>
        <asp:BoundField HeaderText="Port" DataField="dns_port"/>
        <asp:BoundField HeaderText="MAC Address" DataField="dns_mac"/>
        <asp:BoundField HeaderText="Refresh Time" DataField="dns_update"/>
        <asp:TemplateField HeaderText="DVR Location">
            <ItemTemplate>
                <asp:Label ID="dvrAddr" runat="server"></asp:Label>
            </ItemTemplate>
            <ControlStyle Width="100px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Modify">
            <ItemTemplate>
                <a href="javascript:void(0);" id="Modify">Modify</a>
            </ItemTemplate>
        </asp:TemplateField>
                <asp:TemplateField HeaderText="Delete">
            <ItemTemplate>
                <a href="javascript:void(0);" id="del">Delete</a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="State">
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text=''></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <%--<asp:HyperLinkField  HeaderText="域名" Text="查看" Target="_blank"/>--%>
    </Columns>
    <HeaderStyle CssClass="main_tr" Height="30" />
    <RowStyle Height="20" VerticalAlign="Middle" HorizontalAlign="Center" Font-Size="14px" />
    <PagerSettings FirstPageText="sy" NextPageText="next" Mode="NextPrevious" />
</asp:GridView>
<!--<p class="main_footer">DVR连入总量：<strong>1000&nbsp;台</strong> 今日连入：<strong>20&nbsp;台</strong> 本周连入：<strong>40&nbsp;台</strong></p> -->
    </form>
</body>
</html>
